﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dm.Domain.Business
{
    interface IBusinessBase<TEntity> where TEntity : class
    {
        TEntity Retrieve(int id);
        List<TEntity> RetrieveAll(bool includeInactive = false);
        TEntity Create(TEntity entity);
        void Update(TEntity entity);
        void Delete(TEntity entity);
        void Delete(int id);
    }
}
